{extend name='table'}

{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='order_express/index_confirm_search'}
        <table id="order" data-url="{:sysuri()}" data-target-search="form.form-search"></table>
    </div>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        // 初始化表格组件
        $('#order').layTable({
            even: true, height: 'full',
            // sort: {field: 'id', type: 'desc'},
            toolbar: '#toolbarDemo',
            cols: [[
                {checkbox: true, fixed: true},
                /** {if $super} **/
                {field: 'company_name', title: '{:lang("公司")}', width: 130, align: 'center'},
                /** {/if} **/
                {field: 'warehouse_c_name', title: '{:lang("仓库名称")}', width: 130, align: 'center'},
                {field: 'order_no', title: '{:lang("第三方订单号")}', minWidth: 140, align: 'center'},
                {field: 'express_company', title: '{:lang("物流名称")}', minWidth: 110, align: 'center'},
                {field: 'express_no', title: '{:lang("物流单号")}', minWidth: 140, align: 'center'},
                {field: 'status_title', title: '{:lang("状态")}', width: 70, align: 'center'},
                {field: 'into_time', title: '{:lang("入库时间")}', width: 150, align: 'center'},
                {field: 'create_at', title: '{:lang("添加时间")}', width: 150, align: 'center'},
                {toolbar: '#toolbar', align: 'center', width: 122, title: '{:lang("操作")}', fixed: 'right'},
            ]]
        });


    });
</script>

<!--<script type="text/html" id="toolbarDemo">-->
<!--    &lt;!&ndash;{if auth("add")}&ndash;&gt;-->
<!--    <button  data-modal='{:url("add")}' data-title="{:lang('添加仓库')}"  class='layui-btn layui-btn-sm layui-btn-primary'>{:lang('添加仓库')}</button>-->
<!--    &lt;!&ndash;{/if}&ndash;&gt;-->
<!--&lt;!&ndash;    {if auth("remove")}&ndash;&gt;-->
<!--    <a data-confirm="{:lang('确定要删除吗？')}" data-table-id="HouseTable" data-action="{:url('remove')}" data-rule="id#{id}" class='layui-btn layui-btn-sm layui-btn-danger'>{:lang('批量删除')}</a>-->
<!--&lt;!&ndash;    {/if}&ndash;&gt;-->
<!--</script>-->

<!-- 数据操作工具条模板 -->
<script type="text/html" id="toolbar">
    <!--{if auth('info')}-->
    <a class="layui-btn layui-btn-primary layui-border layui-btn-xs" data-title="{:lang('查看')}" data-modal='{:url("info")}?id={{d.id}}'>{:lang('查看')}</a>
    <!--{/if}-->

<!--    &lt;!&ndash;{if auth("remove")}&ndash;&gt;-->
<!--    {{# if (d.status == -1) { }}-->
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="{:lang('确定要删除数据吗?')}" data-action="{:url('remove')}" data-value="id#{{d.id}}">{:lang('删 除')}</a>-->
<!--    {{# } }}-->
<!--    &lt;!&ndash;{/if}&ndash;&gt;-->
</script>
{/block}